package com.lening.provider.service.impl.ManagementOfActivities;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.ManagementOfActivities.EventManagementDAO;
import com.lening.provider.dto.ManagementOfActivities.EventManagementDTO;
import com.lening.provider.po.ManagementOfActivities.EventManagementPO;
import com.lening.provider.service.ManagementOfActivities.EventManagementService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:41
 * @description 类对象
 */
@Slf4j
@Service
public class EventManagementServiceImpl extends BaseServiceImpl<EventManagementDAO, EventManagementPO, EventManagementDTO> implements EventManagementService {

    @Resource
    private EventManagementDAO eventManagementDAO;

    @Override
    public Page<EventManagementDTO> eventList(Page<EventManagementDTO> eventManagementDTO) {
        Page<EventManagementDTO> eventPage = eventManagementDAO.getList(eventManagementDTO);
        return eventPage;
    }

    @Override
    public Page<?> page(EventManagementDTO eventManagementDTO) {
        return this.baseMapper.getList(eventManagementDTO);
    }
}
